#pragma once

#include <QMainWindow>
#include <QStandardItemModel>
#include <QCompleter>

#include "dpkg/dpkg.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private Q_SLOTS:
    void On_Refresh_Clicked();
    void On_ShowInfo_Clicked();
    void On_Package_EditingFinished();
    void On_DPKG_Updated();

private:
    Ui::MainWindow *ui;
    QScopedPointer<QCompleter> completer;
    QScopedPointer<QStandardItemModel> completer_model;

    QScopedPointer<Dpkg> dpkg;
};
